//
//  BuyViewController.swift
//  jiaoyi
//
//  Created by wjk on 2018/8/14.
//  Copyright © 2018年 wjk. All rights reserved.
//  我要买，挂牌交易

import UIKit

class BuyViewController: BaseTabbarViewController,UITabBarControllerDelegate {

    static let defalut = BuyViewController()
    
    var direction:Int = 1
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationItem.title = "竞价交易";
        self.delegate = self
        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) {
        if self.selectedIndex == 0 {
            self.navigationItem.title = "竞价交易";
        }else if self.selectedIndex == 1 {
            self.navigationItem.title = "挂牌交易";
        }else {
            self.navigationItem.title = "协商交易";
        }
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
